What does (function( $ ){...})( jQuery ); do/mean?

Posted by Derek Adair on Stack Overflow See other posts from Stack Overflow or by Derek Adair
Published on 2010-03-17T17:59:43Z Indexed on 2010/03/17 18:01 UTC
Read the original article Hit count: 128

Filed under:

Hi,

I am a bit new to reusable plugins for jquery. I have ran across this code several times and can't figure out exactly what is going on.

(function( $ ){
   ...
})( jQuery );

Can any one enlighten me?

© Stack Overflow or respective owner

Related posts about jQuery